import request from '@/utils/request'

// 设备管理-列表查询
export function getdevlist(data) {
  return request({
    url: '/radiation/dev',
    method: 'get',
    params: data
  })
}
//设备管理---添加设备
export function adddev(data) {
  return request({
    url: '/radiation/dev/add',
    method: 'post',
    data: data
  })
}

//设备管理---修改设备信息
export function updatedev(data) {
  return request({
    url: '/radiation/dev/update',
    method: 'post',
    data: data
  })
}

//设备管理--删除
export function deldev(ids) {
  return request({
    url: '/radiation/dev/'+ids,
    method: 'get',

  })
}

//报告列表
export function listdose(query) {
  return request({
    url: '/radiation/check',
    method: 'get',
    params: query
  })
}

//报告列表-删除
export function deldose(ids) {
  return request({
    url: '/radiation/check/delete/'+ids,
    method: 'DELETE',

  })
}
//设备报告-根据id查询报告
export function getdose(id) {
  return request({
    url: '/radiation/check/select/'+id,
    method: 'get',

  })
}
//设备报告-保存和修改
export function savedose(data) {
  return request({
    url: '/radiation/check',
    method: 'post',
    data: data
  })
}